create procedure wp_CheckDB
	@DBName varchar(max)
as
	declare @Query varchar(max)
	set @Query = 'if exists(select 1 from ' + @DBName +'.sys.triggers where name like ''wp_Logger'') select 1 else select 0'
	exec (@Query);